package com.macro.mall.service;

import com.macro.mall.service.fallback.ProductServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;

/**
 * @author super
 * @title: BatchMarketSms
 * @description: TODO
 * @date 2020/2/17 15:55
 */
@Service
@FeignClient(name = "${noticeFeign.batchmarketsms}", fallbackFactory = ProductServiceFallbackFactory.class)
//@FeignClient(name = "http://10.34.82.25:14000", fallbackFactory = BatchMarketSmsServiceFallbackFactory.class)
public interface ProductService {

   /* @PostMapping(value = PathConstants.PATH_BATCH_MARKET_SMS_TASK_SUBMIT_METHOD_URL, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    BatchMarketSmsTaskSubmitResp batchMarketSmsTaskSubmit(@RequestBody BatchMarketSmsTaskSubmitVO request);


    @PostMapping(value = PathConstants.PATH_BATCH_MARKET_SMS_UP_ADVICE_METHOD_URL, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    ResponseBody upAdvice(@RequestParam("taskId") String taskId);*/
}
